# num1 = 10
# num2 = 20
# num3 = 30

# alist = [] # 空列表
# print(type(alist))
#
# alist = list() # 列表，list为内置函数
# print(type(alist))

# alist = [1,2,3,4] # 创建列表并初始化
# print(alist) # 打印列表数据

# alist = [1,'hello',True] # 创建列表并初始化且类型不同
# print(alist) # 打印列表数据

# alist = [1,2,3,4]
# print(alist[2]) # 访问下标为2的数据

# alist = [1,2,3,4]
# print(alist)
# alist[2] = 100 # 将索引为2的值修改成100
# print(alist)

# alist = [1,2,3,4]
# print(alist[100]) # 超出范围抛异常

# alist = [1,2,3,4]
# print(len(alist)) # 计算列表的长度

# alist = [1,2,3,4]
# print(alist[3]) # 打印下标为3的值
# print(alist[-1]) # 打印最后一个值，即下标为3的值

# alist = [1,2,3,4]
# print(alist[1:3]) # 切片，取出下标[1,3)之间的数，1可取，3不可取

# alist = [1,2,3,4]
# print(alist[1:]) # 省略右边界，获取到末尾
# print(alist[:-1])# 省略左边界，从头开始获取
# print(alist[:])  # 省略左右边界，获取整个列表

# alist = [0,1,2,3,4,5,6,7,8,9]
# print(alist[1:6:1]) # 获取下标[1,6)数据，且步长为1
# print(alist[0:9:2]) # 获取下标[0,9)数据，且步长为2
# print(alist[3:8:3]) # 获取下标[3,8)数据，且步长为3

# alist = [0,1,2,3,4,5,6,7,8,9]
# print(alist[6:1:-1]) # 获取下标(1,6]数据，从6开始获取，且步长为1
# print(alist[9:0:-2]) # 获取下标(0,9]数据，从9开始获取，且步长为2
# print(alist[8:3:-3]) # 获取下标(3,8]数据，从8开始获取，且步长为3

# alist = [1,2,3,4]
# print(alist[100:200]) # 数字越界不会有负面影响

# alist = [1,2,3,4]
# for elem in alist:
#     print(elem)

# alist = [1,2,3,4]
# for i in range(0,len(alist)):
#     print(alist[i])

# alist = [1,2,3,4]
# i = 0
# while i < len(alist):
#     print(alist[i])
#     i += 1

# alist = [1,2,3,4]
# print(alist)
# alist.append('hello') # 尾插元素
# print(alist)

# alist = [1,2,3,4]
# print(alist)
# alist.insert(1,'hello') # 在下标为1的位置插入元素
# print(alist)

# alist = [1,2,3,4]
# print(2 in alist) # 判断2是否在列表中
# print(5 in alist) # 判断5是否在列表中

# alist = [1,2,3,4]
# print(alist.index(2)) # 元素存在返回下标
# # print(alist.index(10)) # 元素不存在抛异常

# alist = [1,2,3,4]
# print(alist)
# alist.pop() # 删除最后一个元素
# print(alist)

# alist = [1,2,3,4]
# print(alist)
# alist.pop(3) # 删除下标为3的元素
# print(alist)

# alist = [1,2,3,4]
# print(alist)
# alist.remove(3) # 删除值为3的元素
# print(alist)

# alist = [1,2,3,4]
# blist = [5,6,7]
# print(alist + blist) # 合并两个列表
# print(alist)
# print(blist)

# alist = [1,2,3,4]
# blist = [5,6,7]
# alist.extend(blist) # 合并两个列表，会修改alist列表的值
# print(alist)
# print(blist)

# atuple = ( ) # 创建空元组
# atuple = tuple() # 使用函数创建元组


def getPoint():
    return 10,20 # 默认元组类型

result = getPoint()
print(type(result))